<?php include THEMES_PATH.'public/before_body2.phtml';?>
<link href="/statics/front/css/article.css" rel="stylesheet">
</head>
<body>
<?php include THEMES_PATH.'public/header2.phtml'; ?>
<div class="banner banner-faq">
  <img src="/statics/front/images/article/banner2.jpg" alt="横幅">
</div>
<div class="main-width heading">
  <strong class="article-heading"><?php echo L('frequently_asked_question');?></strong>
</div>
<div class="main-width">
  <div class="pull-left article-nav">
    <ul>
       <?php
       $menuList = CategoryModel::get_category_list_base($vid = CategoryModel::TYPE_ARTICLE);
       if($menuList):
       $j=0;
        foreach ($menuList as $menu):
            if($menu['parentid']==0 && $menu['id']==2046):
            $j++;
       ?>
          <?php
            $category_list = CategoryModel::get_category_sub_list($menu['id'], $vid = CategoryModel::TYPE_ARTICLE);
            if(category_list):
                foreach ($category_list as $category):
         ?>
          <li><a href="<?php echo $category['url'];?>"><?php echo $category['name']?></a></li>
          <?php
                endforeach;
            endif;
         ?>
      <?php
            endif;
            endforeach;
        endif;
       ?>
    </ul>
  </div>
  <div class="pull-left article-cnt">
    <dl class="faq js-faq">
      <dt class="pb1x border-bottom text black"><?php echo $categoryInfo['name'];?></dt>
      <?php
        $i=0;
        if(isset($articleList) && $articleList):
            foreach ($articleList as $article):
            $i++;
      ?>
      <dd class="pt1x pb1x border-bottom">
        <i>+</i>
        <span class="text black"><?php echo $article['name'];?></span>
        <div class="answer text">
          <?php echo $article['description'];?>
        </div>
      </dd>
      <?php
          endforeach;
        endif;
      ?>
    </dl>
  </div>
</div>
<script>
$(function() {
  (function () {
    var winHref = window.location.href;
    $('.article-nav').find('a').each(function() {
      var $this = $(this);
      if ($this.attr('href') === winHref) {
        $this.parent().addClass('current');
      }
    });
  }());

  $('.js-faq').find('dd').on('click', function() {
    var $this = $(this);
    var $tag = $this.find('i');
    $this.find('> div').toggle();

    if ($this.find('> div').is(':visible')) {
      $tag.text('-');
    } else {
      $tag.text('+');
    }
  }).find('> div').on('click', function(event) {
    event.stopPropagation();
  });
});
</script>
<?php include THEMES_PATH.'public/footer2.phtml';?>

<?php include THEMES_PATH.'public/after_body.phtml';?>